import 'package:tender_flutter/page/person/model/member_combo_entity.dart';

memberComboEntityFromJson(MemberComboEntity data, Map<String, dynamic> json) {
	if (json['times'] != null) {
		data.times = json['times'].toString();
	}
	if (json['isDefault'] != null) {
		data.isDefault = json['isDefault'];
	}
	if (json['money'] != null) {
		data.money = json['money'].toString();
	}
	if (json['days'] != null) {
		data.days = json['days'].toString();
	}
	if (json['title'] != null) {
		data.title = json['title'].toString();
	}
	if (json['id'] != null) {
		data.id = json['id'].toString();
	}
	if (json['discountMoney'] != null) {
		data.discountMoney = json['discountMoney'].toString();
	}
	if (json['subTitle'] != null) {
		data.subTitle = json['subTitle'].toString();
	}
	return data;
}

Map<String, dynamic> memberComboEntityToJson(MemberComboEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['times'] = entity.times;
	data['isDefault'] = entity.isDefault;
	data['money'] = entity.money;
	data['days'] = entity.days;
	data['title'] = entity.title;
	data['id'] = entity.id;
	data['discountMoney'] = entity.discountMoney;
	data['subTitle'] = entity.subTitle;
	return data;
}